﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="MakePurchase.aspx.cs" Inherits="OnlineMovieTicket.WebForms.BuyTicket.MakePurchase" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ctpHead" runat="server">
    <style type="text/css">
        .style3
        {
            width: 214px;
        }
        .style4
        {
            width: 74px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ctpBody" runat="server">
 
<table width="980px" cellpadding="6" cellspacing="6" class="pageBackGround" >
<tr><td>
    <h2 class="fontWhite">MAKE PAYMENT</h2>
    <asp:Panel ID="Panel1" runat="server" ForeColor ="WHITE" GroupingText="Account Information" 
        CssClass="fontWhite" Font-Bold="True">
            <table class="fontWhite" cellpadding="6" cellspacing="6">   
                <tr><td height="5px" colspan="3">
                    <table>
                        <tr>
                            <td width="125px"> Movie Name </td><td width="10px">:</td>
                            <td class="style4"> <asp:Label ID="movieName" runat="server" Text="Label"></asp:Label> </td>
                        </tr>
                        <tr>
                            <td> Time </td><td>:</td>
                            <td class="style4"> <asp:Label ID="time" runat="server" Text="Label"></asp:Label> </td>
                        </tr>
                        <tr>
                            <td> Seat Number </td><td>:</td>
                            <td class="style4"> <asp:Label ID="seatNum" runat="server" Text="Label"></asp:Label> </td>
                        </tr>
                        <tr>
                            <td> Amount </td><td>:</td>
                            <td class="style4">$<asp:Label ID="amount" runat="server" Text="Label"></asp:Label></td>
                        </tr>
                    </table>                   
                    
                    
                    </td></tr>  
               <tr><td>Name</td><td width="1px">:</td><td><asp:TextBox ID="name" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="namVal"
                       runat="server" ErrorMessage="Please enter your name in credit card" ForeColor="Red" ControlToValidate="name"></asp:RequiredFieldValidator></td></tr>
               <tr><td>NRIC/FIN</td><td width="1px">:</td><td><asp:TextBox ID="nric" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="nricVal"
                       runat="server" ControlToValidate="nric"  ErrorMessage="Please enter yor nric" ForeColor ="RED" ></asp:RequiredFieldValidator></td></tr>
               <tr><td>Email</td><td width="1px">:</td><td> <asp:TextBox ID="email" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                       ID="emailVal" runat="server" ControlToValidate="email" ForeColor="Red" ErrorMessage="Please enter your email"></asp:RequiredFieldValidator></td></tr>
               <tr><td>Phone No</td><td width="1px">:</td><td><asp:TextBox ID="phoneNo" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                       ID="phoneVal" runat="server" ControlToValidate="phoneNo" ForeColor="Red" ErrorMessage="Please enter your Phone No."></asp:RequiredFieldValidator></td></tr>
               <tr><td>Card Type</td><td width="1px">:</td><td><asp:RadioButton ID="Visa" runat="server" Checked="True" GroupName="creditCard" Text="Visa" />

                    <asp:RadioButton ID="master" runat="server" GroupName="creditCard" 

                        Text="Master Card" />
                </td>
                
                
            </tr>
            
               <tr><td>Credit Card Number</td><td width="1px">:</td><td><asp:TextBox ID="creditNum" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                       ID="creditVal" runat="server" ControlToValidate="creditNum" ForeColor="Red" ErrorMessage="Please enter your credit card number"></asp:RequiredFieldValidator></td></tr>
               <tr><td>Credit Expired Date</td><td width="1px">:</td>
               <td><asp:Label ID="Label1" runat="server"  Text="Year:"></asp:Label>

                    <asp:DropDownList ID="year" runat="server">
                        <asp:ListItem>2010</asp:ListItem>
                        <asp:ListItem>2011</asp:ListItem>
                        <asp:ListItem>2012</asp:ListItem>
                        <asp:ListItem>2013</asp:ListItem>
                        <asp:ListItem>2014</asp:ListItem>
                        <asp:ListItem>2015</asp:ListItem>
                    </asp:DropDownList>
                    
                    <asp:Label ID="Label2" runat="server" Text="Month:"></asp:Label>
                    
                    <asp:DropDownList ID="month" runat="server">
                        <asp:ListItem Selected="True">01</asp:ListItem>
                        <asp:ListItem>02</asp:ListItem>
                        <asp:ListItem>03</asp:ListItem>
                        <asp:ListItem>04</asp:ListItem>
                        <asp:ListItem>05</asp:ListItem>
                        <asp:ListItem>06</asp:ListItem>
                        <asp:ListItem>07</asp:ListItem>
                        <asp:ListItem>08</asp:ListItem>
                        <asp:ListItem>09</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList></td></tr>
               <tr><td>CVS Number</td><td width="1px">:</td><td><asp:TextBox ID="cvsNum" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                       ID="cvsVal" runat="server" ControlToValidate="cvsNum" ForeColor="Red" ErrorMessage="Please enter your CVS Number"></asp:RequiredFieldValidator></td></tr>
               <tr><td colspan="2"></td><td><asp:Button ID="paymentBtn" runat="server" Text="Submit" 
                        onclick="paymentBtn_Click" CssClass="btn"/>
                    <asp:HiddenField ID="transactionID" runat="server" /></td></tr>
             </table>
       </asp:Panel>    
                
                </td>
            </tr>

        </table>

</asp:Content>
